var Then = new Date();
Then.setTime(Then.getTime() + 24*60*60*1000);
var cookieString = new String(document.cookie);
var cookieHeader = "Cookie1=";
var beginPosition = cookieString.indexOf(cookieHeader);
	
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";

document.cookie = "Cookie1=POPWIN;expires="+ Then.toGMTString();
function ext()          
{
 if(window.event.clientY<132 || altKey) iie.launchURL(popURL);
}

function brs()
{
 document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}

//重置验证码
function refCode(img_id){
	var checkImg=document.getElementById(img_id);
	//alert(checkImg);
	if(checkImg!=null){
		checkImg.style.display="";
		checkImg.src="/servlet/getimg?"+getTime();
	}
}

function getTime(){
	var d, s = "";
	var c = "";
	d = new Date();
	s += d.getYear()+c;
	s += (d.getMonth() + 1) + c;
	s += d.getDate() + c;
	s += d.getHours() + c;
	s += d.getMinutes() + c;
	s += d.getSeconds() + c;
	s += d.getMilliseconds();
	return s;
}
